package com.atguigu.gmall.cart.vo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author lfy
 * @Description
 * @create 2023-07-29 11:32
 */
@Data
public class AddItemVo {

    @NotNull(message = "必须提交商品id")
    private Long skuId;


    @NotNull(message = "必须提交商品数量")
    @Min(value = 1,message = "商品数量必须大于0")
    private Integer skuNum;
}
